/*
 * file_sys.h
 *
 *  Created on: Jul 15, 2009
 *      Author: azoulaii
 */

#include "llds.h"

#ifndef FILE_SYS_H_
#define FILE_SYS_H_

class FileSystem{
private:
	LowLevelDiskServices *_diskService;
public:
	FileSystem(LowLevelDiskServices *diskService);
	int createFile(type);
	int createDir();
	type getFileType(int);
	void f_write(int, char*, int, int);
	//int d_read(i-node);
	int f_read(int,char*,int,int);
	int d_write(int,list*);
	list *d_read(int);
	int f_delete(int i_number);
	int d_delete(int i_number);

};


#endif /* FILE_SYS_H_ */
